/*
 * @Author: shuai
 * @Date: 2023-02-15 10:03:17
 * @LastEditors: shuai
 * @LastEditTime: 2023-03-07 14:30:21
 * @Description: file content
 */
import DefaultTheme from 'vitepress/theme'
import { AntDesignContainer } from '@vitepress-demo-preview/component'
import '@vitepress-demo-preview/component/dist/style.css'
import { EnhanceAppContext } from 'vitepress'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import DemoUiLib from '@utopia-ui-lib/demo-ui-lib'
import Card from './components/Card.vue'
import './style/index.scss'

export default {
  ...DefaultTheme,
  enhanceApp(ctx: EnhanceAppContext) {
    ctx.app.use(ElementPlus)
    ctx.app.use(DemoUiLib)
    ctx.app.component('demo-preview', AntDesignContainer)
    ctx.app.component('Card', Card)
  }
}
